package com.xxx.blog.mapper;



import com.xxx.blog.domain.Article;
import com.xxx.blog.query.ArticleQuery;
import com.xxx.blog.vo.AchieveVo;

import java.util.List;

public interface ArticleMapper {
    List<Article> findAll();
    Article findById(long id);
    List<Article> queryPage(ArticleQuery articleQuery);
    void addArticle(Article article);
    void updateArticle(Article article);
    void deleteArticle(Long id);
    void batchArticle(Long[] ids);

    List<AchieveVo> getAchieveVo();

    List<Article> getRelate(Long id);
}
